package com.meituan.sdk.model.ddzhkh.miniprogram.tradeDistributionFundsCallback;

import com.meituan.sdk.annotations.ApiMeta;
import com.google.gson.reflect.TypeToken;
import javax.validation.constraints.NotBlank;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import javax.validation.constraints.NotNull;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;

/**
* 外部资金回流
* This file was automatically generated.
*/
@ApiMeta(
    path = "/ddzhkh/miniprogram/trade/distribution_funds_callback",
    businessId = 59,
    apiVersion = "10000",
    apiName = "trade_distribution_funds_callback",
    needAuth = true
)
public class TradeDistributionFundsCallbackRequest implements MeituanRequest<TradeDistributionFundsCallbackResponse> {
    @NotBlank(message = "generalBizData不能为空")
    @SerializedName("generalBizData")
    private String generalBizData;
    /**
    * <p data-diff-id="ct-diff-id-e992945a-9304-4989-ad9b-6c313fb090d1">回流参数</p>
    */
    @NotNull(message = "distributionFundsCallBackReq不能为空")
    @SerializedName("distributionFundsCallBackReq")
    private DistributionFundsCallBackReq distributionFundsCallBackReq;

    public String getGeneralBizData() {
        return generalBizData;
    }
    public void setGeneralBizData(String generalBizData) {
        this.generalBizData = generalBizData;
    }
    public DistributionFundsCallBackReq getDistributionFundsCallBackReq() {
        return distributionFundsCallBackReq;
    }
    public void setDistributionFundsCallBackReq(DistributionFundsCallBackReq distributionFundsCallBackReq) {
        this.distributionFundsCallBackReq = distributionFundsCallBackReq;
    }


    @Override
    public MeituanResponse<TradeDistributionFundsCallbackResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<TradeDistributionFundsCallbackResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "TradeDistributionFundsCallbackRequest{" + "generalBizData=" + generalBizData + "," + "distributionFundsCallBackReq=" + distributionFundsCallBackReq + "}";
    }
}
